# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-softlayer-zeep
pkgver=5.0.0
pkgrel=2
pkgdesc="modern/fast Python SOAP client based on lxml / requests"
url="https://docs.python-zeep.org/en/master/"
arch="noarch"
license="MIT"
depends="
	py3-attrs
	py3-isodate
	py3-lxml
	py3-platformdirs
	py3-requests
	py3-requests-file
	py3-requests-toolbelt
	py3-tz
	"
makedepends="py3-setuptools"
checkdepends="py3-freezegun py3-pretend py3-pytest py3-pytest-asyncio py3-pytest-httpx py3-requests-mock"
# test deps not available
if [ "$CARCH" = "armhf" ] || [ "$CARCH" = "ppc64le" ]; then options="!check"; fi
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/s/softlayer-zeep/softlayer-zeep-$pkgver.tar.gz"
builddir="$srcdir/softlayer-zeep-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=build/lib python3 -m pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
8dc85f7692410068fb1b6d1de9c8f7c6e03125773fb6b80de127642dd7303107f14cbe9d175b0a316b4a15697e8ffc3a91077fda1edf625ce5614abc6fd5489e  softlayer-zeep-5.0.0.tar.gz
"
